<?php
declare (strict_types = 1);
namespace app\index\model\order;

use think\Model;

/**
 * @mixin \think\Model
 */
class OrderStatus extends Model
{
    protected $pk = "id";

    /**
     * 添加记录
     * @param $addData
     * @return int|string
     */
    function addInfo($orderInfo,$type,$remark){
        return $this->insertGetId([
            'order_id'=>$orderInfo['id'],
            'user_id'=>$orderInfo['uid'],
            'type'=>$type,
            'remark'=>$remark,
            'create_time'=>date("Y-m-d H:i:s"),
        ]);
    }

}
